package cn.itsource.api.openfeign;

import cn.itsource.api.fallback.RuleFallbackFactory;
import cn.itsource.constants.Constants;
import cn.itsource.pojo.dto.ExpectPriceDto;
import cn.itsource.pojo.ro.ExpectPriceRo;
import cn.itsource.result.JSONResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.math.BigDecimal;

//因为需要用这个api去调用uaa的login登录接口 所以这个就是用来调用的
@FeignClient(value = Constants.Remote.SERVICE_RULE,fallbackFactory = RuleFallbackFactory.class)
public interface IRuleOpenfeignClient {

    @PostMapping(Constants.Remote.PREFIX_RULE_REMOTE)
    public JSONResult<ExpectPriceDto> expectPrice(@RequestBody ExpectPriceRo expectPriceRo);

}
